// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsTopicStatusResponse.h"

namespace aliyun { namespace Ons {

OnsTopicStatusResponse::OnsTopicStatusResponse() {
}

const string& OnsTopicStatusResponse::Data::TopicQueueOffset::GetTopic(void) const {
  return Topic_;
}

const string& OnsTopicStatusResponse::Data::TopicQueueOffset::GetBrokerName(void) const {
  return BrokerName_;
}

int OnsTopicStatusResponse::Data::TopicQueueOffset::GetQueueId(void) const {
  return QueueId_;
}

int64 OnsTopicStatusResponse::Data::TopicQueueOffset::GetMinOffset(void) const {
  return MinOffset_;
}

int64 OnsTopicStatusResponse::Data::TopicQueueOffset::GetMaxOffset(void) const {
  return MaxOffset_;
}

int64 OnsTopicStatusResponse::Data::TopicQueueOffset::GetLastUpdateTimestamp(void) const {
  return LastUpdateTimestamp_;
}

const std::vector<OnsTopicStatusResponse::Data::TopicQueueOffset>& OnsTopicStatusResponse::Data::GetOffsetTable(void) const {
  return OffsetTable_;
}

int64 OnsTopicStatusResponse::Data::GetTotalCount(void) const {
  return TotalCount_;
}

int64 OnsTopicStatusResponse::Data::GetLastTimeStamp(void) const {
  return LastTimeStamp_;
}

const OnsTopicStatusResponse::Data& OnsTopicStatusResponse::GetData(void) const {
  return Data_;
}

const string& OnsTopicStatusResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsTopicStatusResponse::BaseKey(void) {
  return "OnsTopicStatusResponse";
}

void OnsTopicStatusResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  UnmarshallerString(HelpUrl_, response_map, "OnsTopicStatusResponse.HelpUrl");
      int Data__OffsetTable__length = 0;
      UnmarshallerInt(Data__OffsetTable__length, response_map, "OnsTopicStatusResponse.Data.OffsetTable.Length");
      if(Data__OffsetTable__length >= 0) {
        Data_.OffsetTable_.resize(Data__OffsetTable__length);
        for(int i2 = 0; i2 < Data__OffsetTable__length; i2++) {
          UnmarshallerString(Data_.OffsetTable_[i2].Topic_, response_map, "OnsTopicStatusResponse.Data.OffsetTable["+string_ValueOfInt(i2)+"].Topic");
          UnmarshallerString(Data_.OffsetTable_[i2].BrokerName_, response_map, "OnsTopicStatusResponse.Data.OffsetTable["+string_ValueOfInt(i2)+"].BrokerName");
          UnmarshallerInt(Data_.OffsetTable_[i2].QueueId_, response_map, "OnsTopicStatusResponse.Data.OffsetTable["+string_ValueOfInt(i2)+"].QueueId");
          UnmarshallerInt64(Data_.OffsetTable_[i2].MinOffset_, response_map, "OnsTopicStatusResponse.Data.OffsetTable["+string_ValueOfInt(i2)+"].MinOffset");
          UnmarshallerInt64(Data_.OffsetTable_[i2].MaxOffset_, response_map, "OnsTopicStatusResponse.Data.OffsetTable["+string_ValueOfInt(i2)+"].MaxOffset");
          UnmarshallerInt64(Data_.OffsetTable_[i2].LastUpdateTimestamp_, response_map, "OnsTopicStatusResponse.Data.OffsetTable["+string_ValueOfInt(i2)+"].LastUpdateTimestamp");
        } // for(int i2 = 0; i2 < Data__OffsetTable__length; i2++) {
      } // if(Data__OffsetTable__length >= 0) {

    UnmarshallerInt64(Data_.TotalCount_, response_map, "OnsTopicStatusResponse.Data.TotalCount");
    UnmarshallerInt64(Data_.LastTimeStamp_, response_map, "OnsTopicStatusResponse.Data.LastTimeStamp");
}


} } // namespace aliyun { namespace Ons {

// end of file 
